package java8_9;

import java.util.Scanner;

/**
 * @author oldliu
 * @since 1.0
 */
public class Square {
    public static void main(String[] args) {
        //长方形
        Scanner in = new Scanner(System.in);
        System.out.println("请输入长方形的长和高：");
        int w = in.nextInt();//高
        int h = in.nextInt();//长

        for (int j = 1; j <= w; j++) {
            //一行就是h个*
            for (int i = 1; i <= h; i++) {
                //当前值就是i,j
                System.out.print("*");
            }
            System.out.println();
        }
    }
}
